package jpb.process;

import net.jcip.annotations.Immutable;

/**
 * <p/>
 * Holds results of asynchronous process execution.
 *
 * <p/>
 * As it holds process output as string, it is only really meant to be used to monitor 'small' processes.
 *
 * @since v1.1
 * @author Dariusz Kordonski
 */
@Immutable
public class ProcessResult {

    public final int returnCode;
    public final String output;

    public ProcessResult(int returnCode, String output) {
        this.returnCode = returnCode;
        this.output = output;
    }

}
